/*
 *Coprright (c) feng mang studio. all rights reserved.
 *
 *build time: 2014/6/25/22:44
 *
 *file name:snake.h
 *
 *Edition:1.0
 *
 *founder:bluekey
 *
 *description:The design of the snake.
 */
#ifndef _SNAKE_H_
#define _SNAKE_H_

#include"base.h"
#include"food.h"
#include<curses.h>
#include<vector>
using namespace std;

extern int score;

class body:public base 
{
public:
	body(int a = 0,int b = 0,char c = '*'):base(a,b,c){}	
};

class snake
{
public:
	snake();
	int get_score(){return score;}
	int &set_score(){return score;}
	bool move_snake();
	friend food::bool eat_food(vector<body> &Snake);
	friend food::bool new_food(vector<body> &Snake);
private:
	vector<body>Snake;
};



#endif	/*_SNAKE_H_*/
